//
//  FRAME.h
//  ContactPDB
//
//  Created by Bertrand Caron on 14/09/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "RESIDUE.h"

#define appSuppPath @"/Library/Application Support"


@interface FRAME : NSObject <NSCoding>

@property (copy) NSMutableArray* frame_array; 
@property (copy) NSString* frame_name;
@property (copy) NSString* frame_directoryPath;
@property int resNumber, atomNumber;

//- (id)init;
-(id)initWithFrameCompletePath:(NSString *)aFramePath;
-(void)saveFrame;
-(void)saveFrameAtPath:(NSString*)aPath;

+ (FRAME*)frameWithCompletePath:(NSString *)aFramePath;

//Still to be done

-(int)getAtomCount;
//Accesors
-(RESIDUE*)residueAtIndex:(int)anIndex;

//Init
-(id)initWithResArray:(NSMutableArray*)anArray andString:(NSString*) aString;
-(id)initWithEncodedFrame:(NSMutableArray*) anArray:(NSString*) aString;


- (void) encodeWithCoder:(NSCoder *)encoder;
- (id)initWithCoder:(NSCoder *)decoder ;

//Misc
-(NSString*)completePathToFile;

@end
